package com.ruoyi.pcwl.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 菜单对象 wechat_menu
 *
 */
public class WechatMenu
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 上级id */
    @Excel(name = "上级id")
    private Long parentId;

    /** 菜单名称 */
    @Excel(name = "菜单名称")
    private String name;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 网页 链接，用户点击菜单可打开链接 */
    @Excel(name = "网页 链接，用户点击菜单可打开链接")
    private String url;

    /** 菜单KEY值，用于消息接口推送 */
    @Excel(name = "菜单KEY值，用于消息接口推送")
    private String meunKey;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** $column.columnComment */
    @Excel(name = "排序")
    private Long isDeleted;


    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setParentId(Long parentId)
    {
        this.parentId = parentId;
    }

    public Long getParentId()
    {
        return parentId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setUrl(String url)
    {
        this.url = url;
    }

    public String getUrl()
    {
        return url;
    }
    public void setMeunKey(String meunKey)
    {
        this.meunKey = meunKey;
    }

    public String getMeunKey()
    {
        return meunKey;
    }
    public void setSort(Long sort)
    {
        this.sort = sort;
    }

    public Long getSort()
    {
        return sort;
    }
    public void setIsDeleted(Long isDeleted)
    {
        this.isDeleted = isDeleted;
    }

    public Long getIsDeleted()
    {
        return isDeleted;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("parentId", getParentId())
                .append("name", getName())
                .append("type", getType())
                .append("url", getUrl())
                .append("meunKey", getMeunKey())
                .append("sort", getSort())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("isDeleted", getIsDeleted())
                .toString();
    }
}
